import 'dart:convert';

import 'package:exams_app/gen_a/A.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

import 'live_logic.dart';
import 'package:get/get.dart';

class StudentPage extends StatefulWidget {


  var json;

  StudentPage(this.json);


  @override
  _StudentPageState createState() => _StudentPageState();
}

class _StudentPageState extends State<StudentPage> {




  @override
  void initState() {



    // TODO: implement initState
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return Container(
      child: ListView.builder(
          itemCount: widget.json['UserList'].length,
          itemBuilder: _buildListItem),
    );
  }
  Widget _buildListItem(BuildContext context, int index) {
    return Container(
      
      padding: EdgeInsets.only(left: 15,top: 10,bottom: 15),
      child: Column(
        children: [
          Row(
            children: [
              // Image.network('${widget.json[index'][index]['image_128']}'),
              SizedBox(width: 5,),
              Text('${widget.json['UserList'][index]['name']}'),
            ],
          ),
          SizedBox(height: 15,),
          Divider(
            color: Colors.grey[250],
          )
        ],
      )
    );
  }
}
